package com.qf.purchasing.service;


import com.github.pagehelper.PageInfo;
import com.qf.common.base.result.RespResult;
import com.qf.purchasing.qo.ScheduleQO;
import com.qf.purchasing.vo.ScheduleVO;

public interface ScheduleService {

    // 分页查询
    PageInfo<ScheduleVO> query(int page, int size, String title, String year);

    //根据id查询采购计划
    RespResult<ScheduleVO> selectScheduleById(int scheduleId);

    //新增采购计划
    RespResult<String> insert(ScheduleQO scheduleQO);

    //修改采购计划
    RespResult<String> modify(ScheduleQO scheduleQO);

    //删除单个采购计划
    RespResult<String> deleteScheduleOne(int id);

    //删除多个采购计划
    RespResult<String> deleteSchedules(int[] ids);

    //撤回新增和删除操作
    RespResult<String> recallSchedule();

    //撤销删除时更新状态
    RespResult<String> updateScheduleOne(int id);

}
